﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RsiFilter.aspx.cs" Inherits="RsiFilter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script>
    <script>

        $(document).ready(function () {
            $('#_ResultsTable').dataTable({
                "bPaginate": false,
                "bLengthChange": false,
                "bFilter": true,
                "bSort": true,
                "bInfo": false,
                "bAutoWidth": false
            });
        });
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>Price history in years:</td>
                <td><asp:TextBox runat="server" ID="_PriceHistoryTextbox">2</asp:TextBox></td>
            </tr>
            <tr>
                <td>Price % from high (> than):</td>
                <td><asp:TextBox runat="server" ID="_PriceOversoldTextbox">10</asp:TextBox></td>
            </tr>
            <tr>
                <td>RSI Lookback period:</td>
                <td><asp:TextBox runat="server" ID="_RsiLookbackPeriodTextbox">20</asp:TextBox></td>
            </tr>
            <tr>
                <td>RSI filter (< than):</td>
                <td><asp:TextBox runat="server" ID="_RsiFilterTextbox">30</asp:TextBox></td>
            </tr>           
            <tr>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td><asp:Button runat="server" ID="_RunButton" Text="Run" 
                        onclick="_RunButton_Click" />                    
                </td>
            </tr>
        </table>
    </div>
    <div>
        <asp:Table ID="_ResultsTable" runat="server" GridLines="Both" >
        </asp:Table>
    </div>

    

    </form>    
</body>
</html>
